export interface IAccount {
  name: string
  password: string
}

export interface ISpringSecurityLoginUserModel {
  username: string
  password: string
}

export interface ILoginResult {
  id: number
  name: string
  token: string
}

export interface IDataType<T = any> {
  code: number
  msg: string
  data: T
}

export interface ISpringSecurityLoginResult {
  sysUser: ISysUser
  username: string
  enabled: boolean
  password: string
  accountNonExpired: boolean
  accountNonLocked: boolean
  credentialsNonExpired: boolean
}

// 2021年9月22日 16:29:42 chanchaw
// 对应后端服务 atoolsbe 的实体类 SysUser
export interface ISysUser {
  iid: number
  userid: string
  username: string
  password: string
  remark: string
  non_locked: boolean
  non_expired: boolean
  non_password_expired: boolean
  status: number
  last_time: Date
  role_iids: string
  role_sids: string
}

export interface IMenuItem {
  id: number
  name: string
  type: number
  url: string
  icon: string
  sort: number
  parent_id: number
  permission: string
  create_time: Date
  children: IMenuItem[]
}
